//
//  UIViewController+UIViewController_Extesion.h
//  ZhuShou
//
//  Created by zypsusu on 15/12/23.
//  Copyright © 2015年 jw. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MBProgressHUD/MBProgressHUD.h>


@interface UIViewController (UIViewController_Extesion)
/**
 *  NavigationController push一个controller进来
 *
 *  @param controllerName 控制器名称
 */
- (void)br_pushViewControllerWithClassName:(NSString *)controllerName;

- (void)br_pushViewControllerWithClassName:(NSString *)controllerName withTitle:(NSString *)title;

/**
 *  隐藏present的控制器
 */
- (void)br_dismissViewController;

/**
 *  弹出一个有确认和取消按钮的alert视图
 *
 *  @param title      标题
 *  @param content    提示内容
 *  @param complation 点击按钮index
 */
- (void)br_alertViewConfirmWithTitle:(NSString *)title
                             content:(NSString *)content
                      operationIndex:(void(^)(NSInteger clickedIndex)) complation;

/**
 *  弹出一个有取消按钮的alert视图
 *
 *  @param title      标题
 *  @param content    提示内容
 *  @param complation 点击按钮index
 */
- (void)br_alertViewWithTitle:(NSString *)title
                      content:(NSString *)content
               operationIndex:(void(^)(NSInteger clickedIndex)) complation;

/**
 *  展示加载进度视图
 *
 *  @param isShow YES展示 NO关闭
 */
- (void)br_progressHUD:(BOOL) isShow;

- (void)br_AutoDisappearWithText:(NSString *)message;

- (void)init_addTapViewEndEdit;

@end
